LongSecondsToDate
You can use theLongSecondsToDate
procedure to convert the number of seconds elapsed since midnight, January 1, 1904 to a date and time.
PROCEDURE LongSecondsToDate (lSecs: LongDateTime; VAR lDate: LongDateRec);
lSecs
- The number of seconds elapsed since midnight, January 1, 1904.
lDate
- On return, the fields of the long date-time record that contain the date and time corresponding to the value indicated in the
lSecs
parameter.DESCRIPTION
TheLongSecondsToDate
procedure converts the representation of the date-time information from a number of seconds, specified in thelSecs
parameter, to a date and time. The date and time are returned in thelDate
parameter as values in the date-time record. For example, specifying the number of seconds 41627 results in the date and time 5:50 A.M. on June 13, 1990 being returned in thelDate
parameter.The
LongSecondsToDate
procedure is also available as theLongSecs2Date
procedure.SEE ALSO
To learn more about the long date-time value, see the section page 4-25. For more information on the long date-time record, see page 4-26.